﻿@{
    Layout = null;    
}
<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title></title>
    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/jqueryEasyui/js")
    @Styles.Render("~/jqueryEasyui/css")

    <script type="text/javascript">

        $(function () {
            $("#GridList").datagrid({
                url: "/adminweb/role/allroles?Disabled=true",
                height: 300,
                onLoadSuccess: function () {
                    //$('.easyui-linkbutton').linkbutton({ height: 20 });
                },
                selectOnCheck: true,
                checkOnSelect: true,
                columns: [[
                            { field: 'ck', checkbox: true },
                            { field: 'RoleName', title: '角色名称', width: 200 },
                            {
                                field: 'RoleIntro', title: '说明', width: 250,
                                formatter: function (value, row, index) {
                                    if (value == "null" || value == null) {
                                        return "无";
                                    } else {
                                        return value;
                                    }
                                }
                            }
                ]]
            });
        });


        var doSearch = function (value) {
            $("#GridList").datagrid({ url: "/adminweb/role/allroles?Disabled=true&key=" + value });
        }

    </script>
</head>
<body>
    <div style="margin-bottom: 10px; font-size: 12px; margin-left: 15px;">
        角色名称：<input class="easyui-searchbox" data-options="prompt:'请输入角色名称关键词',searcher:doSearch" style="width: 300px" />
    </div>
    <div>
        <table id="GridList">
        </table>
    </div>
    <div style="margin-top:10px; text-align:right; width:480px;">
        <a href="#" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-save'">保 存</a>
    </div>
</body>
</html>
